package org.example;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;


@Data
public class CustomConfig {

    @Value("${my-nacos.register.server-addr}")
    private String serverAddr;
    @Value("${my-nacos.register.service-name}")
    private String serviceName;

    //端口
    @Value("${server.port}")
    private int port;
}
